package com.fudan.cfg.trans;

import java.util.List;
import java.util.Map;

import com.fudan.cfg.base.TransDef;
import com.fudan.run.ctx.annotation.TransAdapter;

@TransAdapter("merge_node")
public class MergeNodeDef  extends TransDef{

	private List<String> targets;
	private String rootKey;
	public MergeNodeDef(String name, String type, String target) {
		super(name, type, target);
	}
	@Override
	public TransDef build(Map<String, Object> configuration) {
		this.setTargets((List<String>) configuration.get("targets"));
		this.setRootKey((String) configuration.get("root_key"));
		return this;
	}
	public List<String> getTargets() {
		return targets;
	}
	public void setTargets(List<String> targets) {
		this.targets = targets;
	}
	public String getRootKey() {
		return rootKey;
	}
	public void setRootKey(String rootKey) {
		this.rootKey = rootKey;
	}

}
